public class Player {

	private boolean isOnTurn;
	private Figure[] figures = new Figure[4];
	private String color;
	private int id;
	private boolean isInGame = false;
	private boolean finished = false;

	public Player(String color, int defaultPosition, int victoryPosition, int id) {
		this.color = color;
		this.id = id;
		figures[0] = new Figure(color, defaultPosition, victoryPosition);
		figures[1] = new Figure(color, defaultPosition, victoryPosition);
		figures[2] = new Figure(color, defaultPosition, victoryPosition);
		figures[3] = new Figure(color, defaultPosition, victoryPosition);
		
	}
	
	public String toString() {
		return "barva hrace je: " + color;
	}
	
	public int getID() {
		return id;
	}

	/**
	 * @return the finished
	 */
	public boolean isFinished() {
		return finished;
	}

	/**
	 * @param finished the finished to set
	 */
	public void setFinished(boolean finished) {
		this.finished = finished;
	}

	/**
	 * @return the figures
	 */
	public Figure[] getFigures() {
		return figures;
	}

	/**
	 * @return the isInGame
	 */
	public boolean isInGame() {
		return isInGame;
	}

	/**
	 * @param isInGame the isInGame to set
	 */
	public void setInGame(boolean isInGame) {
		this.isInGame = isInGame;
	}

}
